﻿/**********************************天使物流*******************************************
* 功能描述:合同管理-承运合同
* 作者:石锦涛
* 时间:2022-01-08
* 
**********************************天使物流*******************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.Contract.NewTransportConts
{
    public interface INewTranAppRepository
    {
        /// <summary>
        /// 显示承运合同
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<NewTransportContDtos>> GetNewTransport(string telet, string danwei, string principal, string operators, string dtime, int? state, int pageindex = 1, int pagesize = 5);
        /// <summary>
        /// 删除承运合同
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<NewTransportCont>> DeleteNewTransport(int Id);

        /// <summary>
        /// 修改承运数据
        /// </summary>
        /// <param name="newOwner"></param>
        /// <returns></returns>
        Task<PageResponse<int>> UpdateNewTransport(NewTransportContDtos newOwner);
        /// <summary>
        /// 添加承运合同
        /// </summary>
        /// <param name="newOwner"></param>
        /// <returns></returns>

        Task<PageResponse<int>> PostNewTransport(NewTransportCont newOwner);
        /// <summary>
        /// 承运批量删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<PageResponse<NewTransportContDto>> DeletEmoreNewTrans(string Id);
    }
}
